ubg_health_create_bar

Syntax:

ubg_health_create_bar(layer, sprite, x, y, health_min, health_max, chunked, direction, event)

Arguments:

Argument Name Type Description
layerlayer_idid or name of the layer to create the healthbar on
spritespriteid of the sprite to use as the health icon
xrealx-position to create the healthbar at
yrealy-position to create the healthbar at
health_minrealminimum value that the health can be
health_maxrealmaximum value that the health can be
chunkedboolwhether or not to use the 'chunked' effect (requires extra subimage!)
directionUBG_HEALTH_DIRECTIONenum value from UBG_HEALTH_DIRECTION specifying which direction the healthbar should fill up
eventUBG_HEALTH_RENDER_EVENTenum value from UBG_HEALTH_RENDER_EVENT specifying to render in draw or gui

Returns: (real)

Description:

Loading page...

Back: System
Next: ubg_health_create_bar_round